import i18n from '@/lang'
// 批次列表
export const pcTbColumns = [
  {
    key: 'checkSeqNo',
    title: i18n.t('pch'),
    dataIndex: 'checkSeqNo',
    scopedSlots: { customRender: 'checkSeqNo' },
    width: 150
  },
  {
    title: i18n.t('reportingTime'),
    dataIndex: 'acceptTime',
    key: 'acceptTime',
    scopedSlots: { customRender: 'reportingTime' },
    width: 150
  },
  {
      title: i18n.t('latestNormalStatus'),
      dataIndex: 'latestNormalStatus',
      key: 'latestNormalStatus',
      scopedSlots: { customRender: 'latestNormalStatus' },
      width: '10%'
  },
  // normalStatus、upgradeDesc、upgradeResult、userNotice、normalTime
  {
    title: i18n.t('upgradeDesc'),
    dataIndex: 'upgradeDesc',
    key: 'upgradeDesc',
    scopedSlots: { customRender: 'upgradeDesc' },
    width: 260
  },
  {
      title: i18n.t('upgradeResult'),
      dataIndex: 'upgradeResult',
      key: 'upgradeResult',
      scopedSlots: { customRender: 'upgradeResult' },
      width: '10%'
  },
  {
      title: i18n.t('userNotice'),
      dataIndex: 'userNotice',
      key: 'userNotice',
      scopedSlots: { customRender: 'userNotice' },
      width: '20%'
  },
  {
      title: i18n.t('normalTime'),
      dataIndex: 'normalTime',
      key: 'normalTime',
      scopedSlots: { customRender: 'normalTime' },
      width: '10%'
  },
  {
    title: i18n.t('operation'),
    dataIndex: '',
    key: 'action',
    scopedSlots: { customRender: 'operation' },
    width: 150
  }
]

// 升级阶段列表
export const updateJdTbColumns = [
  {
    key: 'updateLevel',
    title: i18n.t('updateLevel'),
    scopedSlots: { customRender: 'updateLevel' },
    width: 200
  },
  {
    title: i18n.t('sjblx'),
    dataIndex: 'packageType',
    key: 'sjblx',
    scopedSlots: { customRender: 'packageType' },
    width: 200
  },
  {
    title: i18n.t('reportingTime'),
    dataIndex: 'acceptTime',
    key: 'acceptTime',
    scopedSlots: { customRender: 'reportingTime' },
    width: 200
  },
  {
    title: i18n.t('updateState'),
    dataIndex: 'ecuStatus',
    key: 'ecuStatus',
    scopedSlots: { customRender: 'updateState' },
    width: 200
  },
  {
    title: i18n.t('installTime'),
    dataIndex: 'ecuTime',
    key: 'ecuTime',
    scopedSlots: { customRender: 'installTime' },
    width: 200
  },
  {
    title: i18n.t('desc'),
    dataIndex: 'message',
    key: 'message',
    scopedSlots: { customRender: 'message' },
    width: 200
  },
  {
    title: i18n.t('operation'),
    dataIndex: '',
    key: 'action',
    scopedSlots: { customRender: 'operation' },
    width: 150
  }
]
